package com.zjzywl.smoke.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zjzywl.smoke.entity.SysUser;
import com.zjzywl.smoke.repository.SysUserRepository;
import com.zjzywl.smoke.service.SysUserService;
@Service
public class SysUserServiceImpl implements SysUserService {
	@Autowired
	private SysUserRepository userRepository;
	@Override
	public SysUser findByLoginName(String name) {
		SysUser user = userRepository.findByLoginName(name);
		return user;
	}
	@Override
	public SysUser findOne(Integer userId) {
		SysUser user = userRepository.findOne(userId);
		return user;
	}
	@Override
	public List getUserByPath(String path) {
		List user=userRepository.getUserByPath(path);
		return user;
	}

}
